import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import axios from 'axios'
import * as EleIcons from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
// import VueRouter from 'vue-router'
import router from './router'

axios.defaults.baseURL = 'http://localhost:8088'

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.config.globalProperties.$axios = axios
for(const name in EleIcons){
    app.component(name,EleIcons[name])
}
app.mount('#app')